<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:f="http://java.sun.com/jsf/core" xmlns:h="http://java.sun.com/jsf/html">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>Emp View</title>
</head>
<body>
<f:view>
<h:form>
	<h:inputText id="empSearch" value="#{empView.srchVal}" label="Enter Employee ID" />
	<h:commandButton action="#{empView.getEmpData}" value="Search" />
	<p>
		<h:dataTable border="1" value="#{empView.empList}" var="emp">
			<h:column id="empid">
				<f:facet name="header">
					<h:outputText value="EmpID"></h:outputText>
				</f:facet>
				#{emp.empID}
			</h:column>
			<h:column id="first_name">
				<f:facet name="header">
					<h:outputText value="First Name"></h:outputText>
				</f:facet>
				#{emp.firstName}
			</h:column>
			<h:column id="last_name">
				<f:facet name="header">
					<h:outputText value="Last Name"></h:outputText>
				</f:facet>
				#{emp.lastName}
			</h:column>
			<h:column id="email">
				<f:facet name="header">
					<h:outputText value="Email"></h:outputText>
				</f:facet>
				#{emp.email}
			</h:column>
			<h:column id="hiredate">
				<f:facet name="header">
					<h:outputText value="Hire date"></h:outputText>
				</f:facet>
				#{emp.hiredate}
			</h:column>
			<h:column id="mgr_id">
				<f:facet name="header">
					<h:outputText value="Manager ID"></h:outputText>
				</f:facet>
				#{emp.mgrID}
			</h:column>
			<h:column id="dept_id">
				<f:facet name="header">
					<h:outputText value="Department"></h:outputText>
				</f:facet>
				#{emp.deptID}
			</h:column>
			<h:column id="salary">
				<f:facet name="header">
					<h:outputText value="Salary"></h:outputText>
				</f:facet>
				#{emp.salary}
			</h:column>
		</h:dataTable>
	</p>
</h:form>
</f:view>
</body>
</html>